ASSEMBLY_COMPILER_COMMAND = gmcs
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG
BUILD_DIR = ../../build/
ASSEMBLY_NAME=Galaxium.Client
ASSEMBLY = $(BUILD_DIR)$(ASSEMBLY_NAME).dll

COMPILE_TARGET = library

REFERENCES =  \
	-pkg:anculus-core \
	-pkg:mono-addins \
	-pkg:mono-addins-setup \
	-pkg:ndesk-dbus-1.0 \
	-pkg:ndesk-dbus-glib-1.0 \
	-r:../../build/Galaxium.Core.dll \
	-r:../../build/Galaxium.Protocol.dll \
	-r:../../build/Galaxium.Protocol.Gui.dll \
	-r:System \
	-r:System.Xml

RESOURCES = Galaxium.Client.addin 
EXTRAS = 
DATA_FILES = 

FILES =  \
	Enums/TransferAutomationState.cs \
	Enums/TransferOverwriteAction.cs \
	Enums/TransferOverwriteState.cs \
	EventArgs/SongInformationEventArgs.cs \
	EventArgs/TransferEventArgs.cs \
	Extensions/ActivityListenerExtension.cs \
	Extensions/CommandInputHandlerExtension.cs \
	Extensions/SongInformationBackendExtension.cs \
	Extensions/SoundBackendExtension.cs \
	Interfaces/ICommandInputHandler.cs \
	Interfaces/INotification.cs \
	Interfaces/INotificationBackend.cs \
	Interfaces/ISongInformationBackend.cs \
	Interfaces/ISoundBackend.cs \
	Interfaces/ISoundPlayer.cs \
	Interfaces/IWindowUtility.cs \
	SongInformation/AbstractSongInformationBackend.cs \
	SongInformation/BansheeSongInformationBackend.cs \
	SongInformation/SongInformation.cs \
	Utilities/ClientUtility.cs \
	Utilities/CommandInputHandlerUtility.cs \
	Utilities/FileTransferUtility.cs \
	Utilities/NotificationUtility.cs \
	Utilities/SongPlayingUtility.cs \
	Utilities/SoundUtility.cs \
	Utilities/WindowUtility.cs \
	WindowManager/AbstractWindowManager.cs \
	WindowManager/IWindowManager.cs \
	WindowManager/WindowGroupBehavior.cs

GENERATED_FILES = AssemblyInfo.cs

all: $(ASSEMBLY)

$(ASSEMBLY) $(ASSEMBLY).mdb: $(build_sources) $(build_resources) $(build_datafiles) 
	mkdir -p $(dir $(ASSEMBLY))		
	$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref)

include $(top_srcdir)/Makefile.include
